#!/opt/homebrew/bin/python3.13

# 列表和元组
arr1 = ["暂停","开始"]
tuple1 = ("暂停","开始")
arr2 = list(tuple1)
tuple2 = tuple(arr1)
print(arr2)
print(tuple2)
print(arr1)
print(tuple1)
print(arr1[0])
print(tuple1[0])
arr1[0] = "停止"
print(arr1)


print(arr1[0:1])

# 字典和集合
map1 = dict({"12":{"name":"tim", "age":26}})
print(map1)
print(map1["12"]["name"])

for ke, value in map1.items():
    print(ke, value)
    for ke1, value1 in value.items():
        print(ke1, value1)

set1 = set([1,2,3,4,5,6])

print("12" in map1)
print(set1)








